package com.wy.util;


import java.util.Random;

/**
 * @Author:王渝
 * @Date: 2022/12/8  9:26
 * @Version 1.0
 */
public class RandomNumUtil {


    public static String getFourBitRandom(){
        StringBuilder stringBuilder1 = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < 4; i++) {
            stringBuilder1.append(random.nextInt(10));
        }
        return stringBuilder1.toString();
    }
}
